clean up trailing whitespace, add extensive tests for tag toggle
authorHavoc Pennington <hp@redhat.com>
Wed, 4 Oct 2000 14:23:09 +0000 (14:23 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Wed, 4 Oct 2000 14:23:09 +0000 (14:23 +0000)
commit928c069883b807b67e964b90aa8dd3d5f9bc5bb2
tree5799591cec57c1abb9fb0f156721b9e546e07fca
parent69ac9451a6dac6513f1325122bdf9664040267c9
clean up trailing whitespace, add extensive tests for tag toggle

2000-10-03  Havoc Pennington  <hp@redhat.com>

* gtk/testtextbuffer.c: clean up trailing whitespace,
add extensive tests for tag toggle iteration.

* gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan
distance

* gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
optimize case where the tag root is on level 1
(gtk_text_line_previous_could_contain_tag): attempt to implement
(gtk_text_line_next_could_contain_tag): Abstract out node_compare
functionality

* gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
Implement this, though not very efficiently.

* gtk/gtktextiterprivate.h: reformat

* gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
iterator

* gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
this to properly revalidate the iterators.

* gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
properly at the end of the line (and therefore on empty lines)

* gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
maybe we should return a value...
16 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktextbtree.c
gtk/gtktextbuffer.c
gtk/gtktextiter.c
gtk/gtktextiterprivate.h
gtk/gtktextlayout.c
gtk/gtktextlayout.h
gtk/gtktextview.c
gtk/testtextbuffer.c
tests/testtextbuffer.c